package com.heima.user.controller.v1;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.dto.LoginDTO;
import com.heima.user.service.ApUserLoginService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@Api(value = "app用户端登录api",tags = "app用户端登录api")
@RestController
@RequestMapping("/api/v1/login")
public class LoginController {
    @Autowired
    private ApUserLoginService apUserLoginService;

    @ApiOperation("app登录")
    @PostMapping("/login_auth")
    public ResponseResult login(@RequestBody LoginDTO dto){
        return apUserLoginService.login(dto);
    }
}
